package HTTPSendIntegrator;

public class NotifyRespInd extends MmsMessage{

	private String notifyRespMessage;
	
	public NotifyRespInd(){
		notifyRespMessage="";
		this.mmsMessageType = MMS_MESSAGE_NOTIFY_RESP;		
	}
	
	public String toString(){
		
		if (!isMessageTypeSet()) return "MessageType not defined";
		if (!isTransactionIDSet()) return "transactionID not defined";
		if (!isVersionSet()) return "Version not defined";
		if (!this.isStatus()) return "Status not defined";
		
		notifyRespMessage += MMS_MESSAGE_TYPE + " " + getMessageType() + NL;
		notifyRespMessage += MMS_TRANSACTION_ID + " " + getTransactionID() + NL;
		notifyRespMessage += MMS_VERSION + " " + getVersion() + NL;
		notifyRespMessage += MMS_STATUS + " " + getStatus() + NL;
		
		if (isDeliveryReportEnabled())
			if (isDeliveryReportEnabled()) notifyRespMessage += MMS_DELIVERY_REPORT + " " + MMS_DELIVERY_REPORT_YES + NL;
			else notifyRespMessage += MMS_DELIVERY_REPORT + " " + MMS_DELIVERY_REPORT_NO + NL;
		
		return notifyRespMessage;
	}
}
